﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Miris.HumanMilkAnalyser.Service.Interface
{
    /// <summary>
    /// Provide Synchronize method to process new added, updated and deleted data.
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface ISynchronizeable<T> where T : class
    {
        /// <summary>
        /// Synchronize the input entity list with data source.
        /// Add new entity. Update existing entity. Delete removed entity.
        /// </summary>
        /// <param name="entities">The input entities.</param>
        void Synchronize(IList<T> entities);
    }
}
